package org.blim.blackdawn.model;

import java.nio.FloatBuffer;

import org.blim.blackdawn.shader.Shader;

public class TriangleArray implements Model {
	
	/** Store our model data in a float buffer. */
	public FloatBuffer mVertices;
	public FloatBuffer mColors;
	public FloatBuffer mNormals;
	public FloatBuffer mTextureCoordinates;
	
	public int mVertexCount;

	/** This is a handle to our texture data. */
	public int mTextureHandle;
	
	/** Size of the texture coordinate data in elements. */
	public final int mTextureCoordinateSize = 2;
	
	/** Size of the position data in elements. */
	public final int mVertexSize = 3;

	/** Size of the color data in elements. */
	public final int mColorSize = 4;

	/** Size of the normal data in elements. */
	public final int mNormalSize = 3;
	
	private Shader<TriangleArray> mShader;
	
	@Override
	public Shader<?> getShader() {
		return mShader;
	}
	
	public void setShader(Shader<TriangleArray> shader) {
		mShader = shader;
	}
	
	public int getCount() {
		return mVertexCount;
	}
	
}
